#include <iostream>
#include <netinet/in.h>
#include <sys/socket.h>
#include "include/connect.h"
#include "include/transport.h"

using namespace std;

int main(){
    int sfd = 0;
    Connect conn ;
    Transport trans;
    conn.createConnect();
    // conn.createConnect(AF_INET, SOCK_STREAM, IPPROTO_TCP, 2000);
    sfd = conn.listenClient();
    trans.changeSocket(sfd);
    trans.recvData();
    // 将连接类和事务类分开
    conn.closeConn();
    cout << "server is closed!\n";
    return 0;
}
